<template>
  <view class="settlement">
    <view class="radio1">
      <radio :checked="d1" color="#c00000" @click="quanxuan"></radio>
      <text>全选</text>
    </view>
    <view class="totail1">
      <text>总计：￥{{zmoney}}</text>
    </view>
    <view class="commit1">
      <text>提交({{danshu}})</text>
    </view>
  </view>
</template>
<script>
import {mapGetters,mapMutations} from 'vuex'
export default{
  computed:{
    ...mapGetters('m_cat',['zmoney','d1','danshu'])
  },
  methods:{
    ...mapMutations('m_cat',['qubugai']),
    quanxuan(){
      this.qubugai(!this.d1)
    }
  }
}     
</script>
<style lang="scss">
  .settlement{
    position: fixed;
    width: 100%;
    height: 50px;
    bottom: 0;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    .totail1{
      font-weight: bold;
      color: #c00000;
    }
    .commit1{
      min-width: 100px;
      height: 50px;
      background-color: #c00000;
      line-height: 50px;
      display: flex;
      justify-content: center;
      color: white;
    }
    
  }
</style>
